function OpenTab(widget,id_widget){
  //Ext.getCmp('maincontent').setTitle("");
  className = Ext.ClassManager.getNameByAlias(widget);
  ViewClass = Ext.ClassManager.get(className);
  cmp = new ViewClass();
  
  Ext.getCmp('maincontent').getComponent(id_widget);
  var tab = Ext.getCmp(id_widget);
  Ext.getCmp("maincontent").remove(tab);
  Ext.getCmp('maincontent').add(cmp).show();
  Ext.getCmp('maincontent').setActiveTab(cmp);
  Ext.resumeLayouts(false);
}